<form (submit)="addSkill(skill.value)">
  <label>添加技能</label>
  <input type="text" #skill />

  <button type="submit" class="btn btn-primary">提交</button>
</form>
